package com.qfedu.service.impl;

import com.qfedu.dao.QuestionDao;
import com.qfedu.entity.TQuestion;
import com.qfedu.service.QuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class QuestionServiceImpl implements QuestionService {

    @Autowired
    private QuestionDao questionDao;

    /**
     * 资源库
     * @return
     */
    @Override
    public List<TQuestion> getAllQuestion() {

        return questionDao.getAllQuestion();
    }

    /**
     * 修改资源库数据
     * @param tQuestion
     * @return
     */
    @Override
    public int updateQuestion(TQuestion tQuestion) {
        return questionDao.updateQuestion(tQuestion);
    }

    @Override
    public int deleteQuestion(int id) {
        return questionDao.deleteQuestion(id);
    }
}
